package com.zaydanwu.cla.model;

import java.io.Serializable;

/**
 * credit
 * @author 
 */
public class Credit implements Serializable {
    private Long id;

    private String studentName;

    private Long stuNo;

    private Integer ordinaryCredit;

    private Integer innovateInnovate;

    private Integer totalInnovate;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public Long getStuNo() {
        return stuNo;
    }

    public void setStuNo(Long stuNo) {
        this.stuNo = stuNo;
    }

    public Integer getOrdinaryCredit() {
        return ordinaryCredit;
    }

    public void setOrdinaryCredit(Integer ordinaryCredit) {
        this.ordinaryCredit = ordinaryCredit;
    }

    public Integer getInnovateInnovate() {
        return innovateInnovate;
    }

    public void setInnovateInnovate(Integer innovateInnovate) {
        this.innovateInnovate = innovateInnovate;
    }

    public Integer getTotalInnovate() {
        return totalInnovate;
    }

    public void setTotalInnovate(Integer totalInnovate) {
        this.totalInnovate = totalInnovate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Credit other = (Credit) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStudentName() == null ? other.getStudentName() == null : this.getStudentName().equals(other.getStudentName()))
            && (this.getStuNo() == null ? other.getStuNo() == null : this.getStuNo().equals(other.getStuNo()))
            && (this.getOrdinaryCredit() == null ? other.getOrdinaryCredit() == null : this.getOrdinaryCredit().equals(other.getOrdinaryCredit()))
            && (this.getInnovateInnovate() == null ? other.getInnovateInnovate() == null : this.getInnovateInnovate().equals(other.getInnovateInnovate()))
            && (this.getTotalInnovate() == null ? other.getTotalInnovate() == null : this.getTotalInnovate().equals(other.getTotalInnovate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStudentName() == null) ? 0 : getStudentName().hashCode());
        result = prime * result + ((getStuNo() == null) ? 0 : getStuNo().hashCode());
        result = prime * result + ((getOrdinaryCredit() == null) ? 0 : getOrdinaryCredit().hashCode());
        result = prime * result + ((getInnovateInnovate() == null) ? 0 : getInnovateInnovate().hashCode());
        result = prime * result + ((getTotalInnovate() == null) ? 0 : getTotalInnovate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", studentName=").append(studentName);
        sb.append(", stuNo=").append(stuNo);
        sb.append(", ordinaryCredit=").append(ordinaryCredit);
        sb.append(", innovateInnovate=").append(innovateInnovate);
        sb.append(", totalInnovate=").append(totalInnovate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}